package com.emm.yixun.openapi.hander;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.emm.yixun.common.app.GetContactWayReqDto;
import com.emm.yixun.common.app.GetContactWayResDto;
import com.emm.yixun.customer.service.app.CustomerServiceAppFacade;
import com.emm.yixun.openapi.dto.base.BaseRequestDTO;
import com.emm.yixun.openapi.dto.base.BaseResponseDTO;
import com.emm.yixun.openapi.hander.base.CommonAbstractHander;
import com.emm.yixun.openapi.vo.GetContactWayReqVo;

/**
 * 获取首次接触方式
 * @author Administrator
 *
 */
@Service("getContactWayHander")
public class GetContactWayHander extends CommonAbstractHander{
	
	@Autowired
	private CustomerServiceAppFacade customerServiceAppFacade;
	
	@SuppressWarnings("rawtypes")
	@Override
	public BaseResponseDTO doBusiness(BaseRequestDTO reqDto) {
		GetContactWayReqVo req = (GetContactWayReqVo)reqDto;
		GetContactWayReqDto reqDto1 = req.getParams();
		BaseResponseDTO<GetContactWayResDto> res = new BaseResponseDTO<GetContactWayResDto>();
		GetContactWayResDto resDto = customerServiceAppFacade.getContactWay(reqDto1);
		res.setResData(resDto);
		return res;
	}
	
}
